package com.example.hyxydoctor.http;

import android.widget.Toast;

import com.example.hyxydoctor.R;
import com.google.gson.JsonParseException;


import java.net.ConnectException;
import java.net.SocketTimeoutException;
import java.net.UnknownHostException;
import java.util.concurrent.TimeoutException;

public class ExceptionUtil {
    public static void dealException(Throwable e) {
        if (e instanceof JsonParseException) {
        } else if (e instanceof UnknownHostException) {

        } else if (e instanceof TimeoutException || e instanceof SocketTimeoutException) {

        } else if (e instanceof ConnectException) {

        }
    }
}
